<template>
  <van-nav-bar fixed title="标题" left-text="返回" left-arrow>
    <template #left>
      <slot name="left">
      </slot>
    </template>
    <template #title>
      <slot name="title"></slot>
    </template>
    <template #right>
      <slot name="right"></slot>
    </template>
  </van-nav-bar>
</template>

<script>
import { Toast } from 'vant';
export default {
  methods: {
    onClickLeft() {
      Toast('返回');
    },
    onClickRight() {
      Toast('按钮');
    },
  },
}
</script>

<style>

</style>